package com.yixing.tech.system.po;

import com.yixing.tech.common.base.BasePO;
import com.yixing.tech.common.base.ConditionsVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * @author yixing tech
 * at 2021/12/31
 * describe：
 */
@Data
@Accessors(chain=true)
@NoArgsConstructor
@AllArgsConstructor
public class Menu extends BasePO {

   String name;
   String icon;
   Integer sort;
   /**
    * 0树形，1平铺，2间隔
    */
   Integer style;
   String parentId;
   WebPage webPage;
   Application application;
   List<Menu> children;
   /**
    * 初始过滤条件
    */
   List<ConditionsVO.Condition> conditions;

   /**
    * 菜单级变量配置
    */
   Map<String,Object> variables;
}
